package com.xml;

import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import java.util.Date;

/**
 * 生成申请单xml
 * Created by zcp on 2017/8/29.
 */
// XML文件中的根标识
@XmlRootElement(name = "Message")
public class ProjectBudgetRequestThree {

    private Date timeStampExpired;//="2016-06-29T17:20:00.291+08:00"
    private String authenticationId;//="UserIdOfCPIC"
    private Date timeStampCreated;//="2016-06-29T17:20:00.288+08:00"
    private String sourceLogicalId;//="LIFE.FEE.P07MSG"
    private String sessionId;//="CPICJFO"
    private String bodyType;//="IAA-XML"
    private String txnScope;//="any"
    private String id;//="P09CHN_P07_ProjectBudgetRequest_20160629172000_178.xml"
    private String destinationLogicalId;//="CENTRAL.FINANCE.P07FINMsg"
    private String crfPublish;//="false"
    private String version;//="1.5"

    ProjectBudgetRequestTwo COMMAND;

    {
        authenticationId = "UserIdOfCPIC";
        sourceLogicalId="LIFE.FEE.P07MSG";
        sessionId="CPICJFO";
        bodyType="IAA-XML";
        txnScope="any";
        destinationLogicalId="CENTRAL.FINANCE.P07FINMsg";
        crfPublish="false";
        version="1.5";
    }

    public ProjectBudgetRequestThree() {
        super();
    }

    public ProjectBudgetRequestThree(Date timeStampExpired, String authenticationId, Date timeStampCreated, String sourceLogicalId, String sessionId, String bodyType, String txnScope, String id, String destinationLogicalId, String crfPublish, String version, ProjectBudgetRequestTwo COMMAND) {
        this.timeStampExpired = timeStampExpired;
        this.authenticationId = authenticationId;
        this.timeStampCreated = timeStampCreated;
        this.sourceLogicalId = sourceLogicalId;
        this.sessionId = sessionId;
        this.bodyType = bodyType;
        this.txnScope = txnScope;
        this.id = id;
        this.destinationLogicalId = destinationLogicalId;
        this.crfPublish = crfPublish;
        this.version = version;
        this.COMMAND = COMMAND;
    }

    @XmlElement
    public ProjectBudgetRequestTwo getCOMMAND() {
        return COMMAND;
    }

    public void setCOMMAND(ProjectBudgetRequestTwo COMMAND) {
        this.COMMAND = COMMAND;
    }

    @Override
    public String toString() {
        return "ProjectBudgetRequestThree{" +
                "COMMAND=" + COMMAND +
                '}';
    }

    @XmlAttribute
    public Date getTimeStampExpired() {
        return timeStampExpired;
    }

    public void setTimeStampExpired(Date timeStampExpired) {
        this.timeStampExpired = timeStampExpired;
    }

    @XmlAttribute
    public String getAuthenticationId() {
        return authenticationId;
    }

    public void setAuthenticationId(String authenticationId) {
        this.authenticationId = authenticationId;
    }

    @XmlAttribute
    public Date getTimeStampCreated() {
        return timeStampCreated;
    }

    public void setTimeStampCreated(Date timeStampCreated) {
        this.timeStampCreated = timeStampCreated;
    }

    @XmlAttribute
    public String getSourceLogicalId() {
        return sourceLogicalId;
    }

    public void setSourceLogicalId(String sourceLogicalId) {
        this.sourceLogicalId = sourceLogicalId;
    }

    @XmlAttribute
    public String getSessionId() {
        return sessionId;
    }

    public void setSessionId(String sessionId) {
        this.sessionId = sessionId;
    }

    @XmlAttribute
    public String getBodyType() {
        return bodyType;
    }

    public void setBodyType(String bodyType) {
        this.bodyType = bodyType;
    }

    @XmlAttribute
    public String getTxnScope() {
        return txnScope;
    }

    public void setTxnScope(String txnScope) {
        this.txnScope = txnScope;
    }

    @XmlAttribute
    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    @XmlAttribute
    public String getDestinationLogicalId() {
        return destinationLogicalId;
    }

    public void setDestinationLogicalId(String destinationLogicalId) {
        this.destinationLogicalId = destinationLogicalId;
    }

    @XmlAttribute
    public String getCrfPublish() {
        return crfPublish;
    }

    public void setCrfPublish(String crfPublish) {
        this.crfPublish = crfPublish;
    }

    @XmlAttribute
    public String getVersion() {
        return version;
    }

    public void setVersion(String version) {
        this.version = version;
    }
}
